package top.huhuiyu.springboot3.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
// 实体对应的表名称
@TableName("tb_logic")
public class TbLogic implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    // 自动增长主键
    @TableId(type = IdType.AUTO)
    // 标注字段在添加和修改的时候不出现
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Integer id;
    private String infoKey;
    private String infoValue;
    // 逻辑删除的标识字段
    @TableLogic
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private String deleted;
}
